﻿@model Twitter.Models.TweetButtonPart
@using Orchard.Utility.Extensions;
@using Twitter.Models;
@using Twitter.Models.Enums;

<fieldset>
    <legend>@T("Tweet Button")</legend>
    <div>
        <label for="@Html.FieldIdFor(m => m.Username)">@T("Username")</label>
        @Html.TextBoxFor(m => m.Username, new { @class = "textMedium" })
        @Html.ValidationMessage("Username", "*")
		@*<span class="hint">@T("Username")</span>*@
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.RelatedUsername)">@T("Related Username")</label>
        @Html.TextBoxFor(m => m.RelatedUsername, new { @class = "textMedium" })
        @Html.ValidationMessage("RelatedUsername", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.RelatedUserDescription)">@T("Related User Description")</label>
        @Html.TextBoxFor(m => m.RelatedUserDescription, new { @class = "textMedium" })
        @Html.ValidationMessage("RelatedUserDescription", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.TweetText)">@T("Tweet Text")</label>
        @Html.TextBoxFor(m => m.TweetText, new { @class = "textMedium" })
        @Html.ValidationMessage("TweetText", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Url)">@T("Url")</label>
        @Html.TextBoxFor(m => m.Url, new { @class = "textMedium" })
        @Html.ValidationMessage("Url", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.DataCount)">@T("DataCount")</label>
        @Html.DropDownListFor(m => m.DataCount, Enum.GetValues(typeof(DataCount)).Cast<DataCount>().Select(x => new SelectListItem { Text = x.ToString(), Value = ((int)x).ToString() }))
        @Html.ValidationMessage("DataCount", "*")
    </div>
    <div>
        <label for="@Html.FieldIdFor(m => m.Language)">@T("Language")</label>
        @Html.DropDownListFor(m => m.Language, Enum.GetValues(typeof(Language)).Cast<Language>().Select(x => new SelectListItem { Text = x.ToString(), Value = ((int)x).ToString() }))
        @Html.ValidationMessage("Language", "*")
    </div>
</fieldset>